/**
 * 
 */
package scriptrunner.execution;

/**
 * @author Administrator
 * 
 */
public class CalculateClassMatch {
	static public Class<?> CompareMatch(ValueObject left, ValueObject right) {
		if (left instanceof ValueFloatObject
				&& right instanceof ValueIntegerObject
				|| left instanceof ValueIntegerObject
				&& right instanceof ValueFloatObject) {
			return ValueFloatObject.class;
		} else
			return null;
	}

	static public Class<?> EqualAndNotEqualMatch(ValueObject left,
			ValueObject right) {
		if (left instanceof ValueFloatObject
				&& right instanceof ValueIntegerObject
				|| left instanceof ValueIntegerObject
				&& right instanceof ValueFloatObject) {
			return ValueFloatObject.class;
		} else
			return null;
	}
}
